package com.lyun.code;

import lombok.Getter;

/**
 * 响应状态码
 */
@Getter
public enum ResponseStatusCode {
	OK("0", "请求成功"),
	NEED_LOGIN("401", "请先登录"),
	NOT_FOUND("404", "找不到请求的资源"),
	PARAM_ERROR("405", "参数错误");

	private String code;
	private String message;

	ResponseStatusCode(String code, String message) {
		this.code = code;
		this.message = message;
	}
}
